<html>
<body>

<?php 

error_reporting('IGNORE_REPEATED_ERRORS');

if ($_POST["confirm"] == "confirm"){

$conn = mysql_connect ("localhost", "root", "") or die ('Error: ' . mysql_error());

mysql_query("DROP DATABASE QA");	

echo "Database drop complete.<BR>";

}else{

echo "<FORM name=\"confirm\" id=\"confirm\" action=\"drop_database.php\" method=\"POST\">";
echo "Please type the confirmation code in and press CONFIRM in order to drop the database.  Dropping the database will remove all data from the system and require the system setup to be redone. ";
echo "<INPUT TYPE=\"TEXT\" id=\"confirm\" name=\"confirm\" value=\"\" />";
echo "<INPUT TYPE=\"SUBMIT\" value=\"CONFIRM\" />";
echo "</FORM>";

}



?><BR>



</body>
</html>